home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir26
/
epi601_2.zip
/
FILES07.EXE
/
EDIT.EPA
< prev
next >
Wrap
Text File
|
1994-08-22
|
10KB
|
357 lines
_DOS copy user3.txt doc1.txt
%
_DISPLAY
-- LESSON 3 --
RETRIEVING AND EDITING
A DOCUMENT
..................................
_ENDDISPLAY
%
_DISPLAY
This lesson will introduce more editing features of
EPED, and will discuss ways to find and retrieve files.
The topics to be covered include:
*retrieving files by filename or by file directory
*deleting words and lines
*recalling, or undeleting, deleted words and lines
*inserting new lines
*centering lines
_ENDDISPLAY
%
_DISPLAY
After you have created and saved a file, you can
retrieve it at any time to review, edit, print or
continue typing the document.
_ENDDISPLAY
%
_DISPLAY
To RETRIEVE A FILE, press <F2>, select the "Open file this
window" option using the arrow keys, and press <Enter>. A
prompt box will appear on the screen, displaying the name of
the current or most recently accessed file.
If you know the filename, type it in the prompt box. (The
filename that is displayed will disappear as soon as you begin
to type.) Press <Enter> and the file will appear on the screen.
_ENDDISPLAY
%
_DISPLAY
If you don't remember the filename, you can request a list
(or directory) of all available files and choose a file
from this directory. To do this:
*At the prompt box, type *.* instead of a filename.
Press <Enter> and a directory of all the available
files will be displayed.
*Move the selection bar to the correct filename and
press <Enter>.
*The file will appear on the screen.
_ENDDISPLAY
%
_DISPLAY
The asterisk (*) used in the previous example is referred
to as a WILDCARD. When used in a filename format it means
"any" -- that is, "*.*" means a filename that has ANY
filename and ANY file extension. Another example is
"*.txt" which means all files that have any filename but
have a file extension of .txt.
_ENDDISPLAY
%
_DISPLAY
At the next screen, retrieve the file named DOC1.TXT by
using the file directory:
*Press <F2>, select "Open file this window", and
press <Enter>.
*At the prompt box, type *.* and press <Enter>.
A list of all available files will be displayed.
*Move the selection bar to the file DOC1.TXT
using the up and down arrow keys and press <Enter>.
_ENDDISPLAY
%
[<F2>-Open file; *.* for directory; select DOC1.TXT & press <Enter>]
_CLEARALL
%
_DISPLAY
After you have retrieved a file, you can continue typing or
editing the document.
From the previous lesson, you know that you can delete text
using the <Backspace> and <Delete> keys. When deleting more
than a few characters -- for example, words or whole lines --
you can save time by using other features of EPED.
The <CTRL> key, when combined with certain other keys, will
perform such functions.
_ENDDISPLAY
%
_DISPLAY
To invoke these functions, depress the <Ctrl> key, then
press the second key lightly while still holding down
<Ctrl>. Release both keys immediately.
The first function to try - <CTRL-T> - is used to DELETE
A WORD. Place the cursor under the first character of the
word to be deleted. Press <CTRL> and then <T> and the word
will be removed.
_ENDDISPLAY
%
_DISPLAY
The next screen will return you to the file DOC1.TXT.
Practice deleting words using the <Ctrl-T> command:
*Place the cursor under the first character of the
word to be deleted.
*Press <Ctrl> and then <T> (while still holding
down <Ctrl>). Release both keys immediately.
_ENDDISPLAY
%
_OPENFILE DOC1.TXT
[Move cursor to word, <Ctrl-T> to delete]
_CLEARALL
%
_DISPLAY
If you accidentally delete the wrong word, you can
restore the line to its original text AS LONG AS YOU
HAVE NOT LEFT THE LINE.
To restore the text, use the <F4>-"Undo this line"
option. This command brings back the original text
of the line.
_ENDDISPLAY
%
_DISPLAY
To restore the line, follow these steps:
*With the cursor still in the line, press
<F4> and select "Undo this line" using the
selection bar.
*Press <Enter> and the original text of the
line will appear on the screen.
_ENDDISPLAY
%
_DISPLAY
Now you'll return to DOC1.TXT. Practice deleting words
and then restoring the line. Let's review the commands
once again:
*To DELETE A WORD, place the cursor under the first
character of the word. Press <Ctrl> and then <T> and
the word will be deleted.
*To RESTORE A LINE, make sure you have not left the
line. Press <F4>, select "Undo this line" and
press <Enter>. The original text of the line is
restored to the screen.
_ENDDISPLAY
%
_OPENFILE DOC1.TXT
[<Ctrl-T> to delete word, then <F4>-Undo this line]
_CLEARALL
%
_DISPLAY
DELETING A LINE is done in much the same way, using
<CTRL-Y>. To delete a line:
*Place the cursor under any character in the line
to be deleted.
*Press <Ctrl> and then <Y>, and release them
immediately. The line will disappear from the
screen.
Now return to the file DOC1.TXT and practice deleting
a line or two of text using <Ctrl-Y>.
_ENDDISPLAY
%
_OPENFILE DOC1.TXT
[Move cursor to line, <Ctrl-Y> to delete line]
_CLEARALL
%
_DISPLAY
To UNDELETE A LINE, use the <F4>-"Undelete" command. This
is used to restore a line when the ENTIRE line has been
deleted, rather than PART of a line which was restored with
the previous command "Undo this line".
To undelete the line:
*Place the cursor in the line below the point where
the line should be inserted.
*Go to the <F4> menu, select "Undelete" using the
arrow keys.
*Press <Enter> and the line will reappear on the
screen.
_ENDDISPLAY
%
_DISPLAY
Now return to the file and practice deleting and undeleting
lines. To review the commands once again:
*To DELETE A LINE, place the cursor in the line to be
deleted. Press <Ctrl-Y> and the line will be deleted.
*To UNDELETE A LINE, place the cursor in the line below
the point where the line should be inserted. Press <F4>,
select "Undelete" and press <Enter>. The line will
reappear on the screen.
_ENDDISPLAY
%
_OPENFILE DOC1.TXT
[<Ctrl-Y> to delete a line, <F4> to undelete]
_CLEARALL
%
_DISPLAY
If you would like to add another line or more of text into
the document, or just add additional blank lines, you can
INSERT NEW LINES using <CTRL-N>. To insert lines:
*Go to the line below the point where the line should
be inserted. Place the cursor under the first character
of the line.
*Press <CTRL> and <N> and a blank line will be inserted.
At the next screen, practice inserting lines with <CTRL-N>.
Then try deleting the lines with <CTRL-Y>.
_ENDDISPLAY
%
_OPENFILE DOC1.TXT
[<Ctrl-N> to add a line, <Ctrl-Y> to delete a line]
_CLEARALL
%
_DISPLAY
Another editing command is CENTERING A LINE. There are
two ways to do this in EPED:
* by using the <F4>-"Center current line" command
* by using the combined keystrokes <CTRL-O C>.
_ENDDISPLAY
%
_DISPLAY
To use the <F4> center command:
*Type the line to be centered and press <Enter>.
*Move the cursor back up to the line and press
<F4>. Select the option "Center current line",
press <Enter> and the line will automatically
be centered.
If you want to "uncenter" the line, just use the
<Backspace> or <Delete> keys to remove the blank
spaces between the left margin and the first char-
acter of the line.
_ENDDISPLAY
%
_DISPLAY
At the next screen, practice centering the headings
using the <F4>-"Center current line" command. The steps,
once again, are:
*Place the cursor in the line to be centered.
*Press <F4>, select "Center current line",
and press <Enter>.
Try uncentering the line using the <Backspace> or
<Delete> keys.
_ENDDISPLAY
%
_OPENFILE DOC1.TXT
[Place cursor in line, <F4>-Center current line]
_CLEARALL
%
_DISPLAY
The other command requires pressing two keys with the
<Ctrl> key, rather than one as seen in previous commands.
*Type the line to be centered and press <Enter>.
*Move the cursor back up to the line. Press <Ctrl>
and, while still holding down the <Ctrl> key, lightly
press <O> and then <C> in succession. Release the
keys immediately.
_ENDDISPLAY
%
_DISPLAY
The next screen will give you a chance to practice typing
and then centering lines using the <Ctrl-O C> command.
The screen will be blank -- just begin typing a line or
two of text, and then center it.
The steps, once again, are:
*Type the line to be centered, then move the cursor
back to the line.
*Press <Ctrl> then <O> and <C>, and the line will
be centered.
_ENDDISPLAY
%
_MARK
[Type line, press <Enter>; move cursor to line, press <Ctrl-O C>]
_REMOVE
%
_DISPLAY
This lesson introduced many of the editing commands of
EPED, using both the function key <F4> and the <Ctrl>
key in combination with other keys.
There are many other commands which use <Ctrl> key
sequences; see the Epi Info manual for a complete list
of these functions.
_ENDDISPLAY
%
_DISPLAY
Here is a review of the commands that were covered in
this lesson:
*<Ctrl-T> to delete a word
*<F4>-UNDO THIS LINE to restore the original
text of a line
*<Ctrl-Y> to delete a line
*<F4>-UNDELETE to undelete the line
*<Ctrl-N> to insert a new line
*<F4>-CENTER CURRENT LINE or <Ctrl-O C> to
center a line
_ENDDISPLAY
%
_DISPLAY
That concludes Lesson 3. Now you will return to the
EPED Tutorial Menu, where you can choose another lesson
or exit from the tutorial.
_ENDDISPLAY
%
_RUN WPTM.EPA